package com.service;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Service;

//短信通知类
@Service
public class SmsListener implements ApplicationListener<OrderEvent> {
//    @Override
//    public void onApplicationEvent(ApplicationEvent event) {
//        System.out.println("短信通知业务");
//    }

    @Override
    public void onApplicationEvent(OrderEvent event) {
        System.out.println("短信通知业务");
    }
}
